﻿using System.Collections.Generic;
using System.Web.Mvc;

namespace OneWorks.Web.Api.Controllers
{
 

    public class MetadataController : Controller
    {
        //public ContentResult DataBase()
        //{
        //    string connstr = System.Configuration.ConfigurationManager.ConnectionStrings["OneWorksConnectionString"].ConnectionString;
        //    IMetadata metadata = new SqlServerMetadata(connstr);
        //    List<Database> databases = metadata.GetAllDatabase();
        //    Entity<List<Database>> dataGridEntity = new Entity<List<Database>> { Total = databases.Count, Rows = databases };
        //    return Content(dataGridEntity.ToString());
        //}
    }
}
